<?php
namespace app\common\model\mysql;

use think\Model;

class SpecsValue extends Model {
    // 自动生成写入时间
    protected $autoWriteTimestamp = true;

    public function getNormalBySpecsId($specsId, $field = '*') {
        if (empty($phoneNumber)) {
            return false;
        }
        $where = [
            'specs_id' => $specsId,
            'status' => config('status.mysql.table_normal')
        ];
        return $this->where($where)->field($field)->select();
    }

    public function getNormalInIds($ids) {
        return $this->whereIn('id', $ids)
            ->where('status','=',config('status.mysql.table_normal'))
            ->select();
    }
}